<!--
*Author：富行天下团队
 *
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mall/Mall_hotel_overview.js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
  
		
</template>
  <!--引入css样式文件-->
<script>
    import extend from "@/extension/mall/Mall_hotel_overview.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                //addressList:[],
                table: {
                    key: 'id',
                    footer: "Foots",
                    cnName: '产品酒店概况',
                    name: 'Mall_hotel_overview',
                    url: "/hotelOverviews/",
                    sortName: "createDate"
                },
                extend: extend,
                editFormFields: {"id":"","hotel_name":"","aa":"","typeName":"","hotel_address":"","latitude":"","Code":"","type":"","Depiction":"Depiction","hotel_facilities":[],"hotel_description":[],"hotel_Policy":"","hotel_Introduction":"","createDate":"","creator":"","modifyDate":"","isAvailable":"","modifier":"","createID":"","typeCode":"","typeName":""},
                editFormOptions: [[{"title":"酒店名称","required":true,"field":"hotel_name"},
                             {
                                dataKey: "",
                                title: "酒店地址",
                               required: true,
                                field: "hotel_address",
                                remote: true, //远程搜索(从后台字典搜索,只会搜索自定义sql,后台如果返回的数据量较大，请将字典维护的sql取top)
                                //url:'api/xx/xx'从指定url搜索 返回格式必须是[{key:'xxxx',value:'xxx'}]
                                data: [],
                                placeholder: "输入地址关键字段搜索",
                                type: "select",
                                
                            }, 
                             // {"title":"酒店地址","field":"hotel_address","type":"text"}
                            ],
                              
                            //    [{"title":"产品类型","field":"typeName","type":"select","dataKey": "pro_type",},
                              // {"title":"类型编码","field":"typeCode","type":"text"},
                             [ {"title":"经纬度","field":"latitude","type":"text"},
                              ],
                               [{"title":"轮播图","field":"imageAddress","type":"img","multiple":true,maxFile:3},
                               {"title":"描述图","field":"depiction","type":"img","multiple":true,maxFile:3},],
                              [{"dataKey":"Hotel_facilities","data":[],"title":"酒店设施","required":true,"field":"hotel_facilities","type":"selectList"},
                               {"dataKey":"Hotel_description","data":[],"title":"酒店描述","required":true,"field":"hotel_description","type":"selectList"}],
                              [{"title":"是否可用","field":"isAvailable","type":"switch"}],
                             [{"title":"酒店入住政策","field":"hotel_Policy","required":true,"type":"textarea",colSize: 12}],
                              [{"title":"酒店简介","field":"hotel_Introduction","type":"textarea",colSize: 12}],
                              ],
                searchFormFields: {"hotel_name":""},
                searchFormOptions: [[{"title":"酒店名称","field":"hotel_name","type":"like"}]],
                columns: [
                       {field:'id',title:'主键',type:'int',width:90,hidden:true,readonly:true,require:true,align:'left'},
                    //    {field:'spare2',title:'扩展字段2',type:'string',width:220,align:'left',sortable:true},
                    //    {field:'spare3',title:'扩展字段3',type:'string',width:220,align:'left'},
                    //    {field:'spare4',title:'扩展字段4',type:'string',width:220,align:'left'},
                    //    {field:'spare5',title:'扩展字段5',type:'string',width:220,align:'left'},
                    //    {field:'spare6',title:'扩展字段6',type:'string',width:220,align:'left'},
                       //{field:'hotel_Rating',title:'酒店评分',type:'string',width:120,align:'left'},
                      // {field:'hotel_phone',title:'酒店电话',type:'string',width:120,align:'left'},
                       {field:'hotel_name',title:'酒店名称',type:'string',width:120,align:'left'},
                      // {field:'typeName',title:'产品类型名称',bind:{ key:'pro_type',data:[]},type:'string',width:90,align:'left'},
                     //  {field:'typeCode',title:'产品类型编码',type:'string',width:120,align:'left'},
                        {field:'imageAddress',title:'轮播图',type:'img',width:50,align:'left'},
                         {field:'depiction',title:'描述图',type:'img',width:50,align:'left'},
                       {field:'hotel_Introduction',title:'酒店简介',type:'string',width:120,align:'left'},
                       {field:'hotel_facilities',title:'酒店设施',type:'string',bind:{ key:'Hotel_facilities',data:[]},width:120,align:'left'},
                       {field:'hotel_description',title:'酒店描述',type:'string',bind:{ key:'Hotel_description',data:[]},width:120,align:'left'},
                        {field:'hotel_Policy',title:'酒店入住政策',type:'string',width:120,align:'left'},
                       {field:'hotel_address',title:'酒店地址',type:'string',width:120,align:'left'},
                        {field:'latitude',title:'经纬度',type:'string',width:120,align:'left'},
                       {field:'isAvailable',title:'是否可用',bind: { key: 'enable', data: [] },type:'int',width:90,align:'left'},
                       {field:'creator',title:'创建人',type:'string',width:120,align:'left'},
                       {field:'modifier',title:'修改人',type:'string',width:120,align:'left'},
                       {field:'modifyID',title:'修改人ID',type:'int',width:120,hidden:true,align:'left'},
                       {field:'modifyDate',title:'修改时间',type:'datetime',width:120,align:'left',sortable:true},
                       {field:'createID',title:'创建人ID',type:'int',width:90,hidden:true,align:'left'},
                       {field:'createDate',title:'创建时间',type:'datetime',width:120,align:'left',sortable:true}],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
